#include<stdio.h>
#include<stdlib.h>

double mean(char *PATH){
    
    FILE *fp = fopen(PATH, "r");

    double aux;
    double data[];
    int count = 0;
    double mean = 0.0;
    double sum = 0.0;
    int N = 0;
    int i = 0;

    while(!feof(fp)){
        fread(fp,"%f\n", &aux );
        aux = data[i];
        count += count;
        i++;
    }

    count = N;
    for(i = 0 ; i < N ; i++){
        sum += data[i];
    }

    mean = sum/N ;

    return mean;
}